import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router';
// import Home from '@/views/Home.vue';
import Layout from '@/components/Layout.vue';
import famasIn from '@/router/friamin';
import friamOut from '@/router/friamOut';

const routes : Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'Layout',
    component: Layout,
    redirect: '/index',
    children: famasIn,
  },
  ...friamOut,
];

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;
